<?php

//print_r(__DIR__);exit;


exec("php D:\phpstudy_pro\WWW\chinadmin\support\workerman\Applications\Chat\Web\php.php");

exit;
use Workerman\Worker;
use Workerman\Connection\AsyncTcpConnection;

require_once __DIR__ . '/../support/Workerman/vendor/autoload.php';

$worker = new Worker();

$worker->onWorkerStart = function($worker){

    $con = new AsyncTcpConnection('ws://l.com:7272');

    $con->onConnect = function($con){
        $con->send('hello');
    };

    $con->onMessage = function($con,$data){
        echo $data;
    };

    $con->connect();

};

Worker::runAll();





